<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<link href="<?php echo CSS_PATH;?>download.css" rel="stylesheet" type="text/css" />
<div class="main">
	<div class="col-left">
    <div class="crumbs">
      <a href="<?php echo siteurl($siteid);?>">首页</a><span> &gt; </span><?php echo catpos($catid);?><?php echo $title;?>
    </div>


<?php
function leftmenu($rootid){
    ?>
    <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=908e98fee724370aae1c9bffadf4f44c&action=category&catid=%24rootid&siteid=%24siteid&order=listorder+ASC\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'category')) {$data = $content_tag->category(array('catid'=>$rootid,'siteid'=>$siteid,'order'=>'listorder ASC','limit'=>'20',));}?>
      <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
      <?php
      if(count($data) == 0){
      return;
      }
      $c = $r['arrchildid'];
      $c = explode(',',$c);
      if(count($c) != 1){
      ?>
      <li onmouseover="displaySubMenu(this)" onmouseout="hideSubMenu(this)">
      <a href="<?php echo $r['url'];?>"><?php echo $r['catname'];?></a>
      <ul  class="left_submenu">
      <?php menu($r['catid']);?>
      </ul>
      </li>
      <?php
      }else if(count($c) == 1){
      ?>
      <li><a href="<?php echo $r['url'];?>"><?php echo $r['catname'];?></a></li>
      <?php
      }
      ?>
      <?php $n++;}unset($n); ?>
      <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
      <?php 
      }
?>
<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=343dca9f23215e3c5e1d304f8362eddc&sql=select+%2A+from+phpcms_category+where+catid+in%28%24catid%29&return=data\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select * from phpcms_category where catid in($catid) LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?>
        <?php $parentid = intval($data[0]['parentid']);?>
    <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
<li style="border-radius: 4px 4px 0 0;width: 190px;list-style:none;
border-bottom: 1px solid white;
background-color: #356CB6;
height: 40px;
line-height: 40px;
text-indent: 2em;font-size:20px;color:#fff;
color: white;
font-weight: bold;
font-size: 20px;">
<?php echo $CATEGORYS[$parentid]['catname'];?></li>
<div class="left_menu">
 <ul><li>
    <?php leftmenu($parentid);?>
</ul>  
</div> 





    <div class="box boxsbg">
      
      <div class="contents" style="min-height:600px;border:1px solid blue">
        <h5 class="tit">下载简介</h5>
          <div class="down_intro">
            <h4 class="tits"><?php echo $title;?></h4><!-- 简介标题 -->
            <?php echo $content;?><!-- 简介内容 -->
          </div>
        <h5 class="tit">下载地址</h5>
          <div class="down_address divl wrap">
            <ul class="l xz_a wrap blue">
        			<?php $n=1;if(is_array($downfiles)) foreach($downfiles AS $r) { ?>
        	        	<li><?php echo $r;?></li>
        			<?php $n++;}unset($n); ?>			
          	</ul>
          </div>
      </div>


    </div>
    </div>
</div>
<?php include template("content","footer"); ?>